package com.ifinc.common.web.frame.define;

import com.ifinc.common.db.Pager;

import java.util.List;
import java.util.Map;

/**
 * User: luotao
 * Date: 13-11-27
 * Time: 14:45
 */
public interface Dao {

    public List list(String sqlName, Map<String, String> param);

    public Pager listPage(String sqlName, Map<String, String> param, Pager pager);

    public int save(String sqlName, Map<String, String> param);

    public int update(String sqlName, Map<String, String> param);

    public int delete(String sqlName, Map<String, String> param);

    public Map load(String sql,Map<String,String> map);
}
